package com.ljh.blog.pojo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ljh.blog.common.utils.DateUtils;
import lombok.Data;

import java.util.Date;

/**
 * @author: Themberfue
 * @date: 2025/3/30 21:33
 * @description:
 */
@Data
public class BlogInfoResponse {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    public String getCreateTime() {
        return DateUtils.dateFormat(createTime);
    }
}
